package com.boot.mapper;

import com.boot.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    void addUser(User user);

    List<User> selectAllUser();

    List<User> getUserAndAddress();

    List<User> getUserByUserName(String userName);

    User getById(Long id);//这里可以加上@Param 指定别名 如果不加就是序号的形式arg0...

    List<User> getUserAndGoods();

    List<User> getUserAndGoodsByLeftJoin();

    User getUserById(@Param("id")Long id);

}
